import axios from "./axios";

export function commentVideo(id, limit, offset, before) {
  return axios({
    url: "/comment/video",
    params: {
      id,
      limit,
      offset,
      before,
    },
  });
}

export function videoDetail(id) {
  return axios({
    url: "/video/detail",
    params: {
      id,
    },
  });
}

export function videoUrl(id) {
  return axios({
    url: "/video/url",
    params: {
      id,
    },
  });
}

export function videoDetailInfo(vid) {
  return axios({
    url: "/video/detail/info",
    params: {
      vid,
    },
  });
}
export function allvideo(id) {
  return axios({
    url: "/related/allvideo",
    params: {
      id,
    },
  });
}
